<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UFT-8">
    <title>电子处方模板</title>
    <style>

        @page {
            size: A4;
            margin: 20mm;
        }


        * {
            padding: 0;
            margin: 0;
        }

        body {
            font-family: "微软雅黑", "宋体", serif;
            font-size: 14px;
            color: #000000;
            line-height: 2em;
        }

        table {
            width: 100%;
        }

        table th {
            font-weight: normal;
        }

        hr {
            border: 1px solid #000;
            margin: 10px 0;
        }


        h1 {
            font-size: 24px;
            font-weight: bold;
            text-align: center;
            height: 2em;
            line-height: 2em;
            display: block;
        }

        .rx-header {

        }


        .rx-type {
            border: 2px solid #000;
            font-size: 16px;
            font-weight: bold;
            text-align: center;
            line-height: 28px;
            height: 28px;
            width: 100px;
            display: inline-block;
            float: right;
        }

        .rx-num {
            font-weight: bold;
        }

    </style>
</head>
<body>
<div>

    <div class="rx-header">
        <h1>${result.clinicName}处方笺 <span class="rx-type">普通处方</span></h1>
        <p class="rx-num">普通处方：${result.chineseConsultDrugDetail.procurementCode} </p>
    </div>
    <hr/>
    <table>
        <tr>
            <td width="33%">科室：${result.departmentName}</td>
            <td width="33%">费别：${result.patientName}</td>
            <td>时间：${result.consultTime}</td>
        </tr>
        <tr>
            <td>患者姓名：${result.patientName}</td>
            <td>性别：${(result.patientSex==1)?string('男','女')}</td>
            <td>年龄：${result.patientAge}岁</td>
        </tr>
        <tr>
            <td>联系电话：${result.phoneNum}</td>
            <td colspan="3"></td>
        </tr>
        <tr>
            <td>家庭住址：${result.familyAddress}</td>
            <td colspan="3"></td>
        </tr>
        <tr>
            <td colspan="4">说明：慢性疾病</td>
        </tr>
        <tr>
            <td colspan="4">临床诊断：

                <#if result.diseaseItemList??>
                    <#list result.diseaseItemList as item>
                        <span>
                    <#if item.disease??>${ item.disease}</#if>
                </span>
                    </#list>
                </#if>
            </td>
        </tr>
    </table>
    <hr/>
    <div>
        <h2>Rp</h2>
        <#if result.chineseConsultDrugDetail.list??>
            <#list result.chineseConsultDrugDetail.list as drug>
                <span>
                    <#if drug.commonName??>${ drug.commonName}</#if><#if drug.totalNumber??>${drug.totalNumber}</#if>g
                </span>
            </#list>
        </#if>
    </div>
    中药配方颗粒;${result.chineseConsultDrugDetail.totalDosage}剂，用法：${result.chineseConsultDrugDetail.useFunction}，频次：${result.chineseConsultDrugDetail.frequency}
    <hr/>
    <table>
        <tr>
            <td>医生签字：
            <img src="">
            </td>
            <td>金额：${result.consultPrice}</td>
        </tr>
        <tr>
            <td>药师/士(审方/调配)：
                <img src="/images/sign_02.png"></td>
            <td>药师/士(复核/发药)：</td>
        </tr>
    </table>
    注：请勿遗失，处方当天有效，因特殊情况，该处方有效期为______天
</div>
</body>
</html>

